clipboard: GdkContentProviderUnion should return after writing the first matched...
authorCarlos Garcia Campos <cgarcia@igalia.com>
Thu, 7 May 2020 09:21:18 +0000 (11:21 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 7 May 2020 09:27:45 +0000 (11:27 +0200)
It continues trying with the other providers due to a missing early
return.

gdk/gdkcontentproviderimpl.c

index 6685f3f8be5892e54f375ca4f1d378a6400e42ce..104f3fbf551aae98ee3ebe2514235191d984e218 100644 (file)
@@ -302,6 +302,7 @@ gdk_content_provider_union_write_mime_type_async (GdkContentProvider     *provid
                                                       gdk_content_provider_union_write_mime_type_done,
                                                       task);
           gdk_content_formats_unref (formats);
+          return;
         }
       gdk_content_formats_unref (formats);
     }